package com.zhiyou100.abstract_demo2;

public class Test {

    public static void main(String[] args) {
        //白金卡
        Card card = new PlatinumCard("xxxx1230","123456",4000);
        card.pay(1000);
        //金卡
        Card card2 = new GoldCard("xxxx000","000000",4000);
        card2.pay(1000);
        card.pay(500);
    }

}
